import SyRequest from '..'
export function login(data: any) {
  return SyRequest.post({
    url: '/login',
    data
  })
}
// 获取用户的个人信息
export function getUserById(id: number) {
  return SyRequest.get({
    url: '/users/' + id
  })
}

//获取用户的菜单
export function getUserMenus(id: number) {
  return SyRequest.get({
    url: `/role/${id}/menu`
  })
}
